home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Mac Game Programming Gurus
/
TricksOfTheMacGameProgrammingGurus.iso
/
More Source
/
Libraries
/
SpriteEngine
/
SE Random
/
SpriteHandlers.h
< prev
Wrap
Text File
|
1995-03-11
|
859b
|
34 lines
/* Application-dependent definitions */
/* All the possible kinds of game entities */
/* Add new types as necessary */
typedef enum
{
randomPositionSprite,
randomSpeedSprite,
randomImpulseSprite,
changeSometimesSprite
} EntityType;
/* Data structure describing a sprite*/
/* Add new fields as necessary */
/**/
typedef struct SpriteRecord {
/*Game entity data - edit as desired*/
EntityType kind; /* What kind? */
Point speed; /* */
Point fixedPointPosition;
/*Sprite data - don't remove*/
Point position; /* Integer screen coordinates! */
GrafPtr face; /* Apprearance of the sprite */
Rect drawingRect; /* Where is it? */
/*List pointers - don't remove*/
struct SpriteRecord *prev, *next; /* Next enity in the list */
} SpriteRecord;
// Decomment this if fixedPointPosition is declared below!
#define _hasfixedpoint